home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
5_9.lha
/
5_9
/
5_9c0.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
470b
|
22 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
/ intset class as defined in section 5.3.2
lass intset
int cursize, maxsize;
int *x;
ublic:
intset(int m, int n); // at most m ints in 1..n
~intset();
int member(int t); // is "t" a member?
void insert(int t); // add 't" to set
void iterate(int& i);
int ok(int& i);
int next(int& i);
;